package cn.com.ccxe.core.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 关键字
 * @author hetao
 *
 */
public class Keyword implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 关键字的唯一标识
	 */
	private int id;
	/**
	 * 关键字文本，类似于搜索引擎的关键字
	 */
	private String text;
	/**
	 * 关键字所属的{@link MonitorType}
	 */
	private List<MonitorType> monitorTypes;

	
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ID:").append(id);
		builder.append("Text:").append(text);
		return builder.toString();
	}
	
	public Keyword(int id) {
		this.id = id;
	}
	public Keyword() {
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public List<MonitorType> getMonitorTypes() {
		return monitorTypes;
	}
	public void setMonitorTypes(List<MonitorType> monitorTypes) {
		this.monitorTypes = monitorTypes;
	}	
	
}
